package com.example.mybatis.multdb2;

import java.util.Map;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * Project:spring-boot-mybatis-multdb2
 * <p>
 * Title:SomeController.java
 * <p>
 * Description:
 * <p>
 * Copyrigth:Jiang Software LTD.co Copyright (c) 2022
 * <p>
 * 
 * @version 1.0
 * @since 1.8
 * @author jiang
 * @history 2022 jiang create
 */
@RestController
public class SomeController {

	@Autowired
	private SomeService someService;

	@RequestMapping("/multdb")
	public String someMenthod() {
		Map<String, Object> map1 = someService.test1();
		Map<String, Object> map2 = someService.test2();
		return "db1:" + map1.toString() + ",db2:" + map2.toString();

	}

}
